package com.ohos.connect.devicecloud.app.modular.user.model.vo;

import com.ohos.connect.devicecloud.auth.core.pojo.SaBaseClientLoginUser;
import com.ohos.connect.devicecloud.app.modular.user.enums.AppUserStatusEnum;

/**
 * APP登录用户对象
**/
public class AppLoginUserVO extends SaBaseClientLoginUser {

    /**
     * 实现是否可以登录
     *
     **/
    @Override
    public Boolean getEnabled() {
        // 仅判断状态是否正常，可自行扩展
        return this.getUserStatus().equals(AppUserStatusEnum.ENABLE.getValue());
    }
}
